<template>
	<view class="box">
    <view class="onBack" @click="goBack">
      <view class="onBackWrap">
        <u-icon name="arrow-left" size="28" color="#999999"></u-icon>
      </view>
    </view>
  </view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goBack() {
        // 返回上一页
        uni.navigateBack({
          delta: 1 // 默认值是1，表示返回的页面层数
        });
      }
		}
	}
</script>

<style lang="scss" scoped>
.box {
  position: fixed;
  bottom: 140rpx;
  right: 40rpx;
  .onBack {
    width: 100rpx;
    height: 100rpx;
    border-radius: 50%;
    background: #fff;
    border: 4rpx solid #999;
    .onBackWrap {
      position: absolute;
      top: 50%;
      left: 50%;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
    }
  }
}
</style>
